<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
<link href="${pageContext.request.contextPath}/css/bootstrap.min.css"
	rel="stylesheet">
<script src="${pageContext.request.contextPath}/js/jquery-1.7.2.js"></script>
<script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
<link
	href="${pageContext.request.contextPath}/themes/material/easyui.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath}/themes/icon.css"
	rel="stylesheet">
<script src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
<script src="${pageContext.request.contextPath}/js/easyui-lang-zh_CN.js"></script>
<title>Insert title here</title>
</head>
<script type="text/javascript">
	$(function() {
		//配置搜索框
		$('#searchSl').datebox({
			 onSelect: function(date){
				 var v = $('#searchSl').datebox('getValue');
					$('#SlMsg').datagrid('reload', {
						searchdate : v
					});
				}
			});

		//配置购物单数据表格
		$('#SlMsg').datagrid({
			url : '${pageContext.request.contextPath}/findSl',
			columns : [ [ {
				field : 'sid',
				title : '购物单编号',
				width : 70,
				
			}, {
				field : 'sdate',
				title : '购物单日期',
				width : 130
			}, {
				field : 'scontent',
				title : '购物单内容',
				fixed : true
			}, {
				field : 'stotalmoney',
				title : '购物单总价(元)',
				width : 80
			}, {
				field : 'eid',
				title : '收银员编号',
				width : 80
			}, ] ],
			pagination : true,
			striped : true,
			rownumbers : true,

		})

	})
</script>
<body>

	<input id="searchSl" type="text" class="easyui-datebox" required="required" data-options="prompt:'选取购物清单日期',editable:false"></input>

	<table id="SlMsg"></table>
</body>
</html>